import { request, METHOD } from "@/utils/request";
import {
  BIGDATASSESSSTAT, EXPORTBIGDATA, BIGDATAHEADER, BIGDATACHART,
  BIGDATARANK, BIGDATAUSER, BIGDATAUSERDETAIL,BIGDATAUSEREXPORT, UPDATE_LOG
} from "./api";

export function exportBigdata(params) {
  return request(EXPORTBIGDATA, METHOD.POST, params,{ responseType:'blob'});
}

export function bigdataHeader(params) {
  return request(BIGDATAHEADER, METHOD.POST, params);
}

export function bigdataChart(params) {
  return request(BIGDATACHART, METHOD.POST, params);
}

export function bigdataRank(params) {
  return request(BIGDATARANK, METHOD.POST, params);
}

export function bigdataUser(params) {
  return request(BIGDATAUSER, METHOD.POST, params);
}

export function bigdataUserDetail(params) {
  return request(BIGDATAUSERDETAIL, METHOD.POST, params);
}

export function bigdataUserExport(params) {
  return request(BIGDATAUSEREXPORT, METHOD.POST, params,{ responseType:'blob'});
}

export function updateLog() {
  return request(UPDATE_LOG, METHOD.POST);
}

export function bigdataAssessStat(params) {
  return request(BIGDATASSESSSTAT, METHOD.POST, params);
}
